package com.mrjoew.weekend.entities.po;

import com.mrjoew.weekend.entities.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.SQLDelete;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Christopher Jones
 * @ClassName MenuPO
 * @explain
 * @date 2020/11/6 0006 23:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SQLDelete(sql = "UPDATE `sys_menu` SET deleted = 1 WHERE id = ?")
@Entity
@Table(name = "sys_menu")
public class SysMenuPO extends BasePO {

    /**
     * 菜单地址
     */
    private String url;

    /**
     * 序号
     */
    private Integer sort;

    /**
     * 父级ID
     */
    private Integer parent;
}
